#! /bin/sh

PEOC_SS="/opt/fonsview/NE/ss/data/proc/svdb"
true > /opt/fonsview/NE/ss/data/IPTV_CHANNEL_LIST.txt

        cat ${PEOC_SS}/chanlist | while read line
        do
                ContentID=`cat ${PEOC_SS}/chanmap/$line | grep ContentID | awk '{print $2}' | awk -F ":" '{print $2}'`
                chanid=`cat ${PEOC_SS}/chanmap/$line | grep chanid | awk '{print $2}' | awk -F ":" '{print $2}'`
                echo "$ContentID" "$chanid"  >> /opt/fonsview/NE/ss/data/IPTV_CHANNEL_LIST.txt
        done
